#ifndef PRIORITYDELEGATE_H
#define PRIORITYDELEGATE_H

#include <QStyledItemDelegate>

class PriorityDelegate : public QStyledItemDelegate
{
    Q_OBJECT

public:
PriorityDelegate(QObject* parent = 0) : QStyledItemDelegate(parent) { }

void paint(QPainter *painter, const QStyleOptionViewItem &option,
                  const QModelIndex &index ) const;

QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
                      const QModelIndex &index) const;

void setEditorData(QWidget *editor, const QModelIndex &index) const;

void setModelData(QWidget *editor, QAbstractItemModel *model,
                  const QModelIndex &index) const;

void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option,
                          const QModelIndex &index) const;

virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
};
#endif // PRIORITYDELEGATE_H
